package com.xuwang.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

public class Comment {

  private long id;
  private double score;
  private double commentTaste;
  private double commentEnvironment;
  private double commentServe;
  private long commentCount;
  private String commentContent;
  private long userId;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp time;
  private User user;
  private Integer objId;

  public Integer getObjId() {
    return objId;
  }

  public void setObjId(Integer objId) {
    this.objId = objId;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public double getScore() {
    return score;
  }

  public void setScore(double score) {
    this.score = score;
  }


  public double getCommentTaste() {
    return commentTaste;
  }

  public void setCommentTaste(double commentTaste) {
    this.commentTaste = commentTaste;
  }


  public double getCommentEnvironment() {
    return commentEnvironment;
  }

  public void setCommentEnvironment(double commentEnvironment) {
    this.commentEnvironment = commentEnvironment;
  }


  public double getCommentServe() {
    return commentServe;
  }

  public void setCommentServe(double commentServe) {
    this.commentServe = commentServe;
  }


  public long getCommentCount() {
    return commentCount;
  }

  public void setCommentCount(long commentCount) {
    this.commentCount = commentCount;
  }


  public String getCommentContent() {
    return commentContent;
  }

  public void setCommentContent(String commentContent) {
    this.commentContent = commentContent;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public Timestamp getTime() {
    return time;
  }

  public void setTime(Timestamp time) {
    this.time = time;
  }

}
